var ec_right1 = echarts.init(document.getElementById("r1"),"dark");

function zeroData() {
    now = now+1;
    return {
        name: now.toString(),
        value: 0
    };
}

// var r1_one_data=[];
var r1_data = [];
var now = 0;
for (var i = 0; i < 240; i++) {
    r1_data.push(zeroData());
}

var option_right1 = {
    backgroundColor: '#010b33',
    toolbox: {
        feature: {
            dataZoom: {
                yAxisIndex: 'none'
            },
            restore: {},
            saveAsImage: {}
        }
    },
    dataZoom: [{
        start: 0,
        end: 100
    }],
    title: {
      		text: '最新数据监控队列1',
      		// subtext: '模拟数据',
      		// x: 'center',
			textStyle: {

			},
			left: 'left'
      	},
    xAxis: {
        type: 'category',
        splitLine: {
            show: false
        },
        name:'us',
    },
    yAxis: {
        name:'V',
        boundaryGap: [0, '100%'],
        splitLine: {
            show: false
        },
        type: 'value'
    },
    series: [{
        name: '电压',
        data: r1_data,
        type: 'line',
        showSymbol: false,
        hoverAnimation: false,
        smooth: true
    }]
};


ec_right1.setOption(option_right1);





